import request from '@/utils/request'
import Qs from 'qs'

export function listMessage(query) {
	return request.post('/adminMessage/selectMessageByPage', Qs.stringify({
		...query
	}))
}

export function sendMessage(data) {
	return request.post('/adminMessage/systemMessage', {
		...data
	})
}

export function customPhone() {
	return request.get('/ContactUs/customPhone')
}

export function updateAboutUs(data) {
	return request.get('/ContactUs/updateAboutUs', {
		params: {
			data: data
		}
	})
}

export function updatePhone(data) {
	return request.get('/ContactUs/updatePhone', {
		params: {
			data: data
		}
	})
}
